.class Lcom/brixd/niceapp/activity/WebViewActivity$7;
.super Ljava/lang/Object;
.source "WebViewActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/WebViewActivity;->initWidgetsActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/WebViewActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/WebViewActivity;

    .prologue
    .line 236
    iput-object p1, p0, Lcom/brixd/niceapp/activity/WebViewActivity$7;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 6
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 240
    iget-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity$7;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    # getter for: Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/WebViewActivity;->access$500(Lcom/brixd/niceapp/activity/WebViewActivity;)Landroid/webkit/WebView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_20

    iget-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity$7;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    # getter for: Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/WebViewActivity;->access$500(Lcom/brixd/niceapp/activity/WebViewActivity;)Landroid/webkit/WebView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/webkit/WebView;->getTitle()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_21

    .line 248
    :cond_20
    :goto_20
    return-void

    .line 243
    :cond_21
    iget-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity$7;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/WebViewActivity;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "WebViewClickShare"

    invoke-static {v1, v2}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 244
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SEND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 245
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "android.intent.extra.TEXT"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/brixd/niceapp/activity/WebViewActivity$7;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    # getter for: Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;
    invoke-static {v3}, Lcom/brixd/niceapp/activity/WebViewActivity;->access$500(Lcom/brixd/niceapp/activity/WebViewActivity;)Landroid/webkit/WebView;

    move-result-object v3

    invoke-virtual {v3}, Landroid/webkit/WebView;->getTitle()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\n"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/WebViewActivity$7;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    # getter for: Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;
    invoke-static {v3}, Lcom/brixd/niceapp/activity/WebViewActivity;->access$500(Lcom/brixd/niceapp/activity/WebViewActivity;)Landroid/webkit/WebView;

    move-result-object v3

    invoke-virtual {v3}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 246
    const-string v1, "text/plain"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 247
    iget-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity$7;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity$7;->this$0:Lcom/brixd/niceapp/activity/WebViewActivity;

    const v3, 0x7f0c00ef

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/activity/WebViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/brixd/niceapp/activity/WebViewActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_20
.end method
